<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Menu extends CI_Controller {
	function __construct()
	{
		parent::__construct();
		/*构造方法中加载模型*/
		$this->load->model('check');
	}
	function top()
	{
		/*将用户的session信息分配到数组中并分配至视图中*/
		$temp['username']=$this->session->userdata('manager');
		/*加载上部区域*/
		$this->load->view('admin/top',$temp);
	}
	function main()
	{
		/*加载主要区域*/
		$this->load->view('admin/main');
	}
	function left()
	{
		/*加载设置对应的菜单项*/
		$this->load->view('admin/menu/menu');
	}
	function news()
	{   
	    /*加载新闻对应的菜单项*/
		$this->load->view('admin/menu/news');
	}
	function qita()
	{
		/*加载其他对应的菜单项*/
		$this->load->view('admin/menu/qita');
	}
}